package com.demo.repository;

import com.demo.component.User;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;

/**
 * @Author :蕉绿
 * @Date : 2023/2/8 10:41
 * @Version : V1.0
 * @Description :
 */
@Repository
public class UserRepository {
    @Bean
    public User getUser() {
        User user = new User();
        user.setName("王五");
        user.setId(9);
        return user;
    }
}
